﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EmployeeAdd.aspx.cs" Inherits="WISD.CarFriend.Web.Admin.OA.EmployeeManage.EmployeeAdd" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>新增员工</title>
    <link rel="stylesheet" type="text/css" href="../../Content/CSS/ClientCSS/Style.css" />
    <link rel="stylesheet" type="text/css" href="../../Content/Themes/tabPlugin/tabstyle.css" />
    <script type="text/javascript" src="../../Scripts/CommonScripts/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="../../Scripts/CommonScripts/jquery.validate.min.js"></script>
    <script type="text/javascript" src="../../Scripts/CommonScripts/cursorfocus.js"></script>
    <script type="text/javascript" src="../../Scripts/CommonScripts/messages_cn.js"></script>
    <script type="text/javascript" src="../../Scripts/ClientScripts/EmployeeUpload/EmployeeImage.js"></script>
    <script type="text/javascript" src="../../Scripts/ClientScripts/EmployeeUpload/IdentityCardImage.js"></script>
    <script type="text/javascript" src="../../Scripts/CommonScripts/jquery.form.js"></script>
    <script type="text/javascript" src="../../Scripts/DatePicker/WdatePicker.js"></script>
    <script type="text/javascript">
        $(function () {
            //表单验证JS
            $("#form1").validate({
                //出错时添加的标签
                errorElement: "span",
                success: function (label) {
                    //正确时的样式
                    label.text(" ").addClass("success");
                }
            });
        });

        //选项卡
        //默认为滑动选择，如果要做成点击选择，将<li>中的onmouseover改成 onclick
        function g(o) { return document.getElementById(o); }
        function HoverLi(n) {
            for (var i = 1; i <= 2; i++) {
                g('tb_' + i).className = 'normaltab'; 
                g('tbc_0' + i).className = 'undis';
            }
            g('tbc_0' + n).className = 'dis'; 
            g('tb_' + n).className = 'hovertab';
        }
    </script>
</head>
<body style="padding: 10px;">
    <form id="form1" runat="server">
    <div class="navigation">
        <span class="back"><a href="EmployeeList.aspx">返回列表</a></span><b>您当前的位置：首页 &gt; 人事管理
            &gt; 新增员工</b>
    </div>
    <div style="padding-bottom: 10px;">
    </div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
        <tr>
            <th colspan="2" align="left">
                新增员工
            </th>
        </tr>
        <tr>
            <td colspan="2">
                <div class="w936">
                    <div id="tb_" class="tb_">
                        <ul>
                            <li id="tb_1" class="hovertab" onmouseover="x:HoverLi(1);">基本信息</li>
                            <li id="tb_2" class="normaltab" onmouseover="i:HoverLi(2);">简历信息</li>
                        </ul>
                    </div>
                    <div class="ctt">
                        <div class="dis" id="tbc_01">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
                                <tr>
                                    <td width="25%" align="right">
                                        员工编号：
                                    </td>
                                    <td width="75%">
                                        <asp:TextBox ID="txtEmployeeID" runat="server" CssClass="input required" size="55" MaxLength="50"
                                            minlength="1" HintTitle="员工编号" HintInfo="员工编号"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="25%" align="right">
                                        姓名：
                                    </td>
                                    <td width="75%">
                                        <asp:TextBox ID="txtName" runat="server" CssClass="input required" size="55" MaxLength="50"
                                            minlength="1" HintTitle="姓名" HintInfo="姓名"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="25%" align="right">
                                        性别：
                                    </td>
                                    <td width="75%">
                                        <asp:RadioButtonList ID="rblSex" runat="server" RepeatDirection="Horizontal"
                                            RepeatLayout="Flow">
                                            <asp:ListItem Selected="True" Value="1">男</asp:ListItem>
                                            <asp:ListItem Value="0">女</asp:ListItem>
                                        </asp:RadioButtonList>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="25%" align="right">
                                        人员照片：
                                    </td>
                                    <td width="75%">
                                        <div>
                                            <asp:TextBox ID="txtEmployeeImage" runat="server" CssClass="input" size="42" MaxLength="100"
                                                minlength="0" HintTitle="人员照片" HintInfo="人员照片"></asp:TextBox>
                                            <a href="javascript:void(0);" class="filesEmployeeImage"><input type="file" id="FileUploadEmployeeImage" name="FileUploadEmployeeImage" /></a>
                                            <span class="uploadingEmployeeImage">正在上传，请稍候...</span>
                                        </div>
                                        <div id="imgEmployeeImage"></div>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="25%" align="right">
                                        生日：
                                    </td>
                                    <td width="75%">
                                        <asp:TextBox ID="txtBirthday" runat="server" onclick="WdatePicker()"  CssClass="input" size="55" MaxLength="100"
                                            minlength="0" HintTitle="生日" HintInfo="生日"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="25%" align="right">
                                        身份证号：
                                    </td>
                                    <td width="75%">
                                        <asp:TextBox ID="txtIdentityCard" runat="server" CssClass="input" size="55" MaxLength="100"
                                            minlength="0" HintTitle="身份证号" HintInfo="身份证号"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="25%" align="right">
                                        身份证图片：
                                    </td>
                                    <td width="75%">
                                        <div>
                                            <asp:TextBox ID="txtIdentityCardImage" runat="server" CssClass="input" size="42" MaxLength="100"
                                                minlength="0" HintTitle="身份证图片" HintInfo="身份证图片"></asp:TextBox>
                                            <a href="javascript:void(0);" class="filesIdentityCardImage"><input type="file" id="FileUploadIdentityCardImage" name="FileUploadIdentityCardImage" /></a>
                                            <span class="uploadingIdentityCardImage">正在上传，请稍候...</span>
                                        </div>
                                        <div id="imgIdentityCardImage"></div>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="25%" align="right">
                                        移动电话：
                                    </td>
                                    <td width="75%">
                                        <asp:TextBox ID="txtMobileTel" runat="server" CssClass="input" size="55" MaxLength="100"
                                            minlength="0" HintTitle="移动电话" HintInfo="移动电话"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="25%" align="right">
                                        QQ号码：
                                    </td>
                                    <td width="75%">
                                        <asp:TextBox ID="txtQQ" runat="server" CssClass="input" size="55" MaxLength="100"
                                            minlength="0" HintTitle="QQ号码" HintInfo="QQ号码"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="25%" align="right">
                                        电子邮件：
                                    </td>
                                    <td width="75%">
                                        <asp:TextBox ID="txtEmail" runat="server" CssClass="input" size="55" MaxLength="100"
                                            minlength="0" HintTitle="电子邮件" HintInfo="电子邮件"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        人员分类：
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlClass" runat="server">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        职务：
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlPosition" runat="server">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        所属分公司：
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlCompany" runat="server">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        是否禁用：
                                    </td>
                                    <td>
                                        <asp:RadioButtonList ID="rblIsDisabled" runat="server" RepeatDirection="Horizontal"
                                            RepeatLayout="Flow">
                                            <asp:ListItem  Selected="True" Value="0">否</asp:ListItem>
                                            <asp:ListItem  Value="1">是</asp:ListItem>
                                        </asp:RadioButtonList>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <div class="undis" id="tbc_02">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
                                <tr>
                                    <td width="25%" align="right">
                                        学历：
                                    </td>
                                    <td width="75%">
                                        <asp:TextBox ID="txtEducation" runat="server" CssClass="input" size="55" MaxLength="100"
                                            minlength="0" HintTitle="学历" HintInfo="学历"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="25%" align="right">
                                        毕业院校：
                                    </td>
                                    <td width="75%">
                                        <asp:TextBox ID="txtSchool" runat="server" CssClass="input" size="55" MaxLength="100"
                                            minlength="0" HintTitle="毕业院校" HintInfo="毕业院校"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="25%" align="right">
                                        政治面貌：
                                    </td>
                                    <td width="75%">
                                        <asp:TextBox ID="txtPolitical" runat="server" CssClass="input" size="55" MaxLength="100"
                                            minlength="0" HintTitle="政治面貌" HintInfo="政治面貌"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="25%" align="right">
                                        家庭住址：
                                    </td>
                                    <td width="75%">
                                        <asp:TextBox ID="txtFamilyAddress" runat="server" CssClass="input" size="55" MaxLength="100"
                                            minlength="0" HintTitle="家庭住址" HintInfo="家庭住址"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="25%" align="right">
                                        现住址：
                                    </td>
                                    <td width="75%">
                                        <asp:TextBox ID="txtPresentAddress" runat="server" CssClass="input" size="55" MaxLength="100"
                                            minlength="0" HintTitle="现住址" HintInfo="现住址"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="25%" align="right">
                                        家庭电话：
                                    </td>
                                    <td width="75%">
                                        <asp:TextBox ID="txtHomePhone" runat="server" CssClass="input" size="55" MaxLength="100"
                                            minlength="0" HintTitle="家庭电话" HintInfo="家庭电话"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="25%" align="right">
                                        受教育情况：
                                    </td>
                                    <td width="75%">
                                        <FCKeditorV2:FCKeditor ID="fckEducationalBackground" runat="server" BasePath="../../FCKedit/" Height="200px" ToolbarSet="Basic" Width="100%" Value=""></FCKeditorV2:FCKeditor>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="25%" align="right">
                                        家庭成员：
                                    </td>
                                    <td width="75%">
                                        <FCKeditorV2:FCKeditor ID="fckFamilyMember" runat="server" BasePath="../../FCKedit/" Height="200px" ToolbarSet="Basic" Width="100%" Value=""></FCKeditorV2:FCKeditor>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="25%" align="right">
                                        工作经历：
                                    </td>
                                    <td width="75%">
                                        <FCKeditorV2:FCKeditor ID="fckWorkExperience" runat="server" BasePath="../../FCKedit/" Height="200px" ToolbarSet="Basic" Width="100%" Value=""></FCKeditorV2:FCKeditor>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </div>
            </td>
        </tr>
    </table>
    <div style="margin-top: 10px; text-align: center;">
        <asp:Button ID="btnSave" runat="server" Text="确认保存" CssClass="submit" 
                onclick="btnSave_Click" />&nbsp;
        <input name="重置" type="reset" class="submit" value="重置" />
    </div>
    </form>
</body>
</html>
